package com.totoro.view;

import com.totoro.utils.TotoroUtils;

/**
 * @author TOTORO
 * @date 2021/5/11 11:49
 * 邮箱验证页面
 */
public class EmailHtml {
    public static String getRegisterHtml(String email, String random){
        return "<html lang=\"en\">\n" +
                "<!--创建人：Totoro-->\n" +
                "<head>\n" +
                "</head>\n" +
                "<body>\n" +
                "<table style=\"font-size:12px;color:#333;width:752px;margin:0 auto;font: normal normal normal 12px/1.5 tahoma, arial, 宋体; \" width=\"752\" height=\"446\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\">\n" +
                "    <tbody><tr>\n" +
                "        <td height=\"87\" colspan=\"3\"><img src='http://img04.taobaocdn.com/tps/i4/T1BC3yXhRaXXcyAtZO-753-87.png' width=\"753\" height=\"87\" border=\"0\" usemap=\"#Map\"></td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td width=\"11\" height=\"250\"><img src='http://img01.taobaocdn.com/tps/i1/T1fwRVXalbXXXXXXXX-11-439.png' width=\"11\" height=\"439\"></td>\n" +
                "        <td width=\"730\" align=\"center\" style=\"vertical-align:top;\">\n" +
                "            <table width=\"730\" height=\"8\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n" +
                "                <tbody><tr>\n" +
                "                    <td height=\"8\"></td>\n" +
                "                </tr>\n" +
                "                </tbody></table>\n" +
                "            <table bgcolor=\"#F5F5F5\" width=\"724\" height=\"35\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:724px;margin-left:3px;border:1px solid #E6E6E6;\">\n" +
                "                <tbody><tr>\n" +
                "                    <td height=\"35\"><font style=\"font-size:12px;\" face=\"宋体\"><strong>&nbsp; 请确认您的邮箱，完成最后一步，您在天猫的注册就成功了！</strong></font>\n" +
                "                    </td>\n" +
                "                </tr>\n" +
                "                </tbody></table>\n" +
                "            <table width=\"730\" height=\"57\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n" +
                "                <tbody><tr>\n" +
                "                    <td width=\"25\" height=\"57\">&nbsp;</td>\n" +
                "                    <td width=\"705\"><font size=\"2\" face=\"宋体\">感谢您在天猫网的注册，您已经填完了所有的注册信息（请注意核对哦）：</font></td>\n" +
                "                </tr>\n" +
                "                </tbody></table>\n" +
                "            <table width=\"266\" height=\"64\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n" +
                "                <tbody><tr>\n" +
                "                    <td width=\"50\" height=\"64\" align=\"left\"><img width=\"32\" height=\"32\" src='http://img02.taobaocdn.com/tps/i2/T1rPAxXiheXXa94Hfd-32-32.png'>\n" +
                "                    </td>\n" +
                "                    <td width=\"207\" valign=\"middle\"><a href=\""+TotoroUtils.getServerAddress()+"/register_02_user_info_"+random+".htm\" style=\"text-decoration:none;font-size:14px;color:#2953A6;font-family:宋体;font-weight:bold;\" rel=\"noopener\" target=\"_blank\">重要,请点击这里完成注册!</a>\n" +
                "                    </td>\n" +
                "                </tr>\n" +
                "                </tbody></table>\n" +
                "            <table width=\"730\" height=\"40\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n" +
                "                <tbody><tr>\n" +
                "                    <td width=\"25\" height=\"28\">&nbsp;</td>\n" +
                "                    <td width=\"705\"><font size=\"2\" face=\"宋体\">如果您不能点击上面的链接，请将下面的链接复制到浏览器地址栏中访问：</font></td>\n" +
                "                </tr>\n" +
                "                </tbody></table>\n" +
                "            <table width=\"730\" height=\"18\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n" +
                "                <tbody><tr>\n" +
                "                    <td width=\"25\" height=\"18\">&nbsp;</td>\n" +
                "                    <td width=\"705\"><a style=\"text-decoration:none;color:#2953A6;\" href=\""+TotoroUtils.getServerAddress()+"/register_02_user_info_"+random+".htm\" rel=\"noopener\" target=\"_blank\"><font color=\"#2953A6\" size=\"2\" face=\"宋体\">"+TotoroUtils.getServerAddress()+"/register_02_user_info_"+random+".htm</font></a>\n" +
                "                    </td>\n" +
                "                </tr>\n" +
                "                </tbody></table>\n" +
                "            <table width=\"730\" height=\"208\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n" +
                "                <tbody><tr>\n" +
                "                    <td width=\"116\" rowspan=\"2\">&nbsp;</td>\n" +
                "                    <td width=\"486\" height=\"39\" valign=\"top\">&nbsp;</td>\n" +
                "                    <td width=\"116\" rowspan=\"2\">&nbsp;</td>\n" +
                "                </tr>\n" +
                "                <tr>\n" +
                "                    <td align=\"center\" valign=\"top\">\n" +
                "                        <table width=\"488\" height=\"119\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#E4E4E4\" bgcolor=\"#FAFAFA\" style=\"border:1px solid #e4e4e4;\">\n" +
                "                            <tbody><tr>\n" +
                "                                <td width=\"19\" height=\"14\"></td>\n" +
                "                                <td width=\"477\"></td>\n" +
                "                            </tr>\n" +
                "                            <tr>\n" +
                "                                <td height=\"28\">&nbsp;</td>\n" +
                "                                <td><font color=\"#333333\" size=\"2\" face=\"宋体\">您的天猫会员名是：<span style=\"font-weight:bold;color:#343535;font-size:14px;\"></span></font>\n" +
                "                                </td>\n" +
                "                            </tr>\n" +
                "                            <tr>\n" +
                "                                <td height=\"35\">&nbsp;</td>\n" +
                "                                <td><font color=\"#333\" size=\"2\" face=\"宋体\">您的电子邮箱地址：<span style=\"font-weight:bold;color:#343535;font-size:14px;\"><a style=\"font-weight:bold;color:#343535;font-size:14px;text-decoration:none;\">"+email+"</a></span></font>\n" +
                "                                </td>\n" +
                "                            </tr>\n" +
                "                            <tr>\n" +
                "                                <td height=\"40\" colspan=\"2\" align=\"center\" valign=\"middle\">\n" +
                "                                    <table width=\"460\" height=\"30\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-top:1px solid #EEEEEE;\">\n" +
                "                                        <tbody><tr>\n" +
                "                                            <td align=\"center\" valign=\"middle\" height=\"40\"><font color=\"#666\" style=\"font-size:12px;line-height:20px;\" face=\"宋体\">电子邮件确认能帮助您更安全的保护您的帐户。</font>\n" +
                "                                            </td>\n" +
                "                                        </tr>\n" +
                "                                        </tbody></table>\n" +
                "                                </td>\n" +
                "                            </tr>\n" +
                "                            </tbody></table>\n" +
                "                    </td>\n" +
                "                </tr>\n" +
                "                </tbody></table>\n" +
                "        </td>\n" +
                "        <td width=\"12\"><img src='http://img01.taobaocdn.com/tps/i1/T10vXVXltzXXXXXXXX-11-439.png' width=\"11\" height=\"439\"></td>\n" +
                "    </tr>\n" +
                "    <tr>\n" +
                "        <td height=\"90\" colspan=\"3\"><img src='http://img03.taobaocdn.com/tps/i3/T1QPkxXh0eXXaL_UsN-752-89.png' width=\"752\" height=\"89\" border=\"0\" usemap=\"#Map2\"></td>\n" +
                "    </tr>\n" +
                "    </tbody></table>\n" +
                "</body>\n" +
                "</html>";
    }

    public static String getFindPasswordHtml(String url){
        return "<h1>天猫-找回密码邮箱验证</h1>" +
                "<h3>请尽快完成密码找回！</h3>"+
                "<a href='"+url+"' style='text-decoration:none;color:#2953A6;'>重要,请点击这里完成注册!</a>" +
                "<br/>" +
                "<font>如果您不能点击上面的链接，请将下面的链接复制到浏览器地址栏中访问：</font>" +
                "<br/>" +
                "<a style='text-decoration:none;color:#2953A6;' href='"+url+"' rel='noopener' target='_blank'><font color='#2953A6' size='2' face='宋体'>"+url+"</font></a>";
    }
}
